/**
 * 客户端数据相关方法
 */
class NoteBook {
  constructor() {
    this.list = [];
  }

  initData(dataList) { 
    this.list = dataList;
  }

  getDataByIndex(index) {
    return this.list[index];
  }

  addNote(block) { 
    this.list.push(block);
  }

  isEmpty() {
    return this.list.length == 0;
  }
  
}